var dbserver = require("../server/dbserver")

exports.cteateGroup = (req,res)=>{
    let data = req.body;
    dbserver.cteateGroup(data,res)
}

exports.insertGroupMsg = (req,res)=>{
    let data = req.body;
    dbserver.insertGroupMsg(data,res)
}

exports.groupDetail = (req,res)=>{//获取群详细信息
    let data = req.body;
    dbserver.groupDetail(data,res)
}

exports.deleteGroupUser = (req,res)=>{//删除群成员
    let data = req.body;
    dbserver.deleteGroupUser(data,res)
}

exports.addGroupUser = (req,res)=>{//删除群成员
    let data = req.body;
    dbserver.addGroupUser(data,res)
}

exports.groupUpdate = (req,res)=>{//群信息修改
    let data = req.body;
    dbserver.groupUpdate(data,res)
}

exports.groupUserUpdate = (req,res)=>{//群个人信息修改
    let data = req.body;
    dbserver.groupUserUpdate(data,res)
}

exports.groupUserInfo = (req,res)=>{//群个人信息获取
    let data = req.body;
    dbserver.groupUserInfo(data,res)
}

exports.deleteGroup = (req,res)=>{//删除群
    let data = req.body;
    dbserver.deleteGroup(data,res)
}

exports.outGroup = (req,res)=>{//用户退出群
    let data = req.body;
    dbserver.outGroup(data,res)
}